package com.szrt.day20170427.designmodel.demo03;


import org.junit.Test;

public class SuperStarTest {
	
	@Test
	public void commonTest() throws Exception {
		
		SuperStar ym = new SuperStar();
		ym.gaiguanggao(2000);
		
	}
	
	
	/**
	 * 使用静态代理模式去拍广告
	 * @throws Exception
	 */
	@Test
	public void proxyTest() throws Exception {
		
		ISuperStar ym = new SuperStar();
		
		ISuperStar zengjia = new SuperStarProxy(ym);
		
		zengjia.gaiguanggao(2000);
		
	}

}
